<p>
  <b>Title:</b>
  <%=h @post.title %>
</p>

<p>
  <b>Body:</b>
  <%=h @post.body %>
</p>

<p>
  <b>Created at:</b>
  <%=h @post.created_at %>
</p>


<p>
<%=  image_tag ("/images/#{@post.image.id};showfile") if @post.image%>
<a href=<%= "/images/#{@post.image.id};showfile" %>><img src=<%= "/images/#{@post.image.id};showfile"%> alt=<%= h "#{@post.image.title}" %> border="0" class="lbOn"/></a>

</p>

  <p>Comments for the project: ( currently <span id="ncomments"><%= @post.comments.count %></span> )</p><br/>
  <div id="comments">
    <% for comment in @post.comments -%>
    <%= render :partial => "comment", :object => comment %>
    <% end %>
  </div>
<br/>

<div id="comment_form">
    <% form_remote_tag :url => {:action => "comment", :id => @post } do %>
    <%= text_area "comment", "body", :rows => 7 %> <br/>
    <%= hidden_field(:comment, :user_id, {:value => current_user.id}) %>
    <%= submit_tag "Comment!" %>
    <% end %>
</div>

<%= link_to 'Edit', edit_post_path(@post) %> |
<%= link_to 'Back', posts_path %>
